package com.tiancai.pojo.vo;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.tiancai.pojo.po.User;
import com.tiancai.pojo.po.Work;
import com.tiancai.pojo.po.WorkRent;
import com.tiancai.service.IWorkRentService;
import com.tiancai.service.IWorkService;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserWorkPowerVo {


    @Schema(description = "用户id")
    private Long userId;
    @Schema(description = "用户名")
    private String userName;
    /**
     * 是否是作者
     */
    @Schema(description = "是否是作者")
    @JsonProperty("isAuthor")  // 显式指定JSON字段名
    private boolean isAuthor;
    /**
     * 是否是租赁者
     */
    @Schema(description = "是否有作品使用权")
    private boolean hasUsageRight;
}
